package com.apps.sannotation.constraints;

import java.lang.annotation.*;

/**
 * 用于验证字段的值不能大于等于注解的min
 */
@Target({ElementType.PARAMETER,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface NumMax {

    float max() default 1;

    String errMsg() default "值超过最大允许值";
}
